package com.asohofrucol.model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the form_field_input database table.
 * 
 */
@Entity
@Table(name="form_field_input")
public class FormFieldInput implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private Long id;

	@Column(name="input_name")
	private String inputName;

	@Column(name="input_type")
	private String inputType;

	//bi-directional many-to-one association to FormField
	@ManyToOne
	@JoinColumn(name="id_form_field")
	private FormField formField;

	//bi-directional many-to-one association to FormFieldInputAnswer
	@OneToMany(mappedBy="formFieldInput")
	private List<FormFieldInputAnswer> formFieldInputAnswers;

	public FormFieldInput() {
	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getInputName() {
		return this.inputName;
	}

	public void setInputName(String inputName) {
		this.inputName = inputName;
	}

	public String getInputType() {
		return this.inputType;
	}

	public void setInputType(String inputType) {
		this.inputType = inputType;
	}

	public FormField getFormField() {
		return this.formField;
	}

	public void setFormField(FormField formField) {
		this.formField = formField;
	}

	public List<FormFieldInputAnswer> getFormFieldInputAnswers() {
		return this.formFieldInputAnswers;
	}

	public void setFormFieldInputAnswers(List<FormFieldInputAnswer> formFieldInputAnswers) {
		this.formFieldInputAnswers = formFieldInputAnswers;
	}

}